/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.alexgorbatchev.syntaxhighlighter.client;

import com.alexgorbatchev.syntaxhighlighter.client.Brush;
import com.alexgorbatchev.syntaxhighlighter.client.Highlighter;
import com.google.gwt.junit.client.GWTTestCase;

/**
 *
 * @author cliffhill
 */
public class Gwt_TestHighlighter extends GWTTestCase {

    @Override
    public String getModuleName() {
        return "com.alexgorbatchev.syntaxhighlighter.Highlighter";
    }

    public void testHighlighter() {
        Highlighter hlViewer = null;

        hlViewer = new Highlighter(Brush.Brushes.PLAIN());

        assertNotNull("Highlighter was not created.", hlViewer);

        hlViewer.setText("Testing, Testing.");

        assertTrue(hlViewer.getBrush() instanceof BrushImpl);
    }
}
